home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
422mods.zip
/
SYSEXCU.422
< prev
next >
Wrap
Text File
|
1993-02-18
|
2KB
|
46 lines
Random Sysop Excuses
Black Magic #70 @13651
Sun Feb 14 11:23:24 1993
Stratosphere #306 @6953
Sun Sep 27 20:29:00 1992
/*
* ST001.MOD // Random "not available" message.
*
* In the information shown after login, "Sysop is : NOT available" is
* replaced by one of several random phrases.
*
* Files : LILO.C Version: 4.21
* Difficulty: Quayle could do it.
*/
Standard disclaimers: Backup your source first, if your HD crashes it's not
my fault, etc.
File: LILO.C
Search for:
npr("Sysop is : %sAvailable\r\n",sysop2()?"":"NOT ");
Delete that line, and replace it with:
if (!sysop2()) { /* begin mod */
i1=(rand() % 5); /* '5' can be another number... it's the */
switch (i1) { /* number of excuses you have. */
case 0: strcpy(s,"Not available. Really. "); break;
case 1: strcpy(s,"Hiding."); break;
case 2: strcpy(s,"Dead."); break;
case 3: strcpy(s,"A prisoner of the Klingons."); break;
case 4: /* '5' -1 */
default: strcpy(s,"Gone.....");
}
} else { strcpy(s,"Available."); }
npr("Sysop is : %s\r\n",s); /* end */
Don't forget to format that last npr() so that it lines up with the other
information printed, and is the same color. You can change colors by
adding ^Cdigit within the string. While you're here, change the colors of
the lines above... the default grey is boring.
5S2trato5S2phere
7-Have fun!-